import { E_EDUCATION_MODE, E_EDUCATION_ROLE } from '../enum/service-enum'
import { IDataWithError } from '../service-typing'

export interface IGetUserInfoParam {}

export interface IUserInfo {
  userId: number
  educationRole: E_EDUCATION_ROLE
  educationMode: E_EDUCATION_MODE
  introduction: string
  classroomDesc: string
  classroomLogoUrl: string
  createTime: number
  updateTime: number
  displayName: string
  mobile: string
  avatar: string
  productStatus: number
}

export interface IUpdateUserInfoParam {
  userId: number
  introduction?: string
  classroomDesc?: string
  classroomLogoUrl?: string
}

export interface IUserService {
  getUserInfo(): Promise<IDataWithError<IUserInfo>>
  updateUserInfo(param: IUpdateUserInfoParam): Promise<IDataWithError>
}
